<template>
	<view>
		<view class="flex_b aboutItem">
			<view class="font-30">客服电话</view>
			<view class="font-30 grey flex" @click="$util.plone(config.kefu_tel)">{{config.kefu_tel}}<text class="iconfont icon-xiangyoujiantou" style="font-size: 26rpx;"></text></view>
		</view>
		
		<view class="flex_b aboutItem" @click="$util.redirectTo('/otherpages/xieyi/xieyi')">
			<view class="font-30">用户协议</view>
			<view class="font-30 grey flex">查看<text class="iconfont icon-xiangyoujiantou" style="font-size: 26rpx;"></text></view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				config:{}
			};
		},
		onLoad() {
			this.configFn()
		},
		methods:{
			configFn() {
				this.$api.sendRequest({
					url:'/api/index/config',
					success:res=>{
						this.config = res.data
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	.aboutItem {
		padding: 30rpx;
		border-bottom: 1rpx solid #f1f4f8;
	}
</style>
